<template>
  <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
  <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
}

const callLimit = (callback, delay) => {
  let timer = null;
  return function () {
    let context = this;
    let args = arguments;
    clearTimeout(timer);
    timer = setTimeout(()=>{callback.apply(context, args);}, delay);
  };
};
// 
const source_resizeObserver = window.ResizeObserver;
window.ResizeObserver = class ResizeObserver extends source_resizeObserver {
  constructor(callback) {
    callback = callLimit(callback, 100);
    super(callback);
  }
};
</script>

<style>
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
* {
  margin: 0;
  padding: 0;
}
#app {  
  font-family: "Microsoft YaHei", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif;
  /* font-family: Avenir, Helvetica, Arial, sans-serif; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
